home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1988 June
/
Ahoy_Magazine_88-06_1988_Double_L.d64
/
Rome Revisited
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
418b
|
13 lines
0 print"[147]"tab(13)"rome revisited"
1 rem ==================================
2 rem commodares problem #49-1 :
3 rem rome revisited
4 rem solution by
5 rem jerry nichols
6 rem ==================================
10 input"number";n
20 read v,r$: if n=>v then n=n-v: print r$;
30 if n>0 then 20
60 data 1000,m,1000,m,1000,m,900,cm,500,d,400,cd,100,c,100,c,100,c
70 data 90,xc,50,l,40,xl,10,x,10,x,10,x,9,ix,5,v,4,iv,1,i,1,i,1,i